import request from '@/utils/request'
// 获取分类列表
export function getarticate () {
  return request({
    url: '/my/cate/list',
    method: 'get'
  })
}
//  添加分类请求
export function postarticate (data) {
  return request({
    url: '/my/cate/add',
    method: 'post',
    data
  })
}
// 获取分类详情
export function getarticateinfo (id) {
  return request({
    url: `/my/cate/info/?id=${id}`,
    method: 'get'
  })
}
// 更新文章分类
export function putarticateinfo (data) {
  return request({
    url: '/my/cate/info',
    method: 'put',
    data
  })
}
// 删除文章分类
export function delarticateinfo (id) {
  return request({
    url: `/my/cate/del?id=${id}`,
    method: 'DELETE'
  })
}
